package com.neusoft.zygh.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.neusoft.zygh.model.Admin;
import com.neusoft.zygh.dao.AdminDao;
import com.neusoft.zygh.service.AdminService;


/**
 * 描述：管理员Service实现
 * 
 * 创建时间：2018/10/01 17:00
 */
@Service
public class AdminServiceImpl implements AdminService{
	@Autowired
	private AdminDao adminDao;
	
	
	
	/**
	 * 根据主键更新
	 */
	@Override
	public int updateByPrimaryKey(Admin record) {
		return adminDao.updateByPrimaryKey(record);
	}


	/**
	 * 登录
	 */
	@Override
	public Admin login(Admin admin) {
		return adminDao.login(admin);
	}

	
}
